home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
wnos5src.zip
/
ARCDUMP.C
< prev
next >
Wrap
Text File
|
1993-08-09
|
666b
|
39 lines
#include "global.h"
#include "config.h"
#ifdef ARCNET
#include "mbuf.h"
#include "arcnet.h"
#include "trace.h"
void
arc_dump(FILE *fp,struct mbuf **bpp,int check)
{
struct arc ahdr;
ntoharc(&ahdr,bpp);
trprintf(fp,"Arcnet: len %u %02x->%02x type ",
ARCLEN + len_p(*bpp),uchar(*ahdr.source),uchar(*ahdr.dest));
switch(uchar(ahdr.type)){
case ARC_IP:
trprintf(fp,"IP\n");
ip_dump(fp,bpp,1);
break;
case ARC_ARP:
trprintf(fp,"ARP\n");
arp_dump(fp,bpp);
break;
default:
trprintf(fp,"0x%x\n",ahdr.type);
break;
}
}
int
arc_forus(struct iface *iface,struct mbuf *bp)
{
return 1;
}
#endif /* ARCNET */